package com.neutech.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neutech.mapper.DeptMapper;
import com.neutech.mapper.UserMapper;
import com.neutech.po.Dept;
import com.neutech.po.User;
@Service
public class UserService {
	@Autowired
	private UserMapper userMapper;

	public User findUser(int id){
		return userMapper.findUserById(id);
	}
	public void updateUser(User user){
		userMapper.updateUserById(user);
	}
	public void addUser(User user){
		userMapper.addUserByName(user);
	}
	public void delUser(String username){
		userMapper.delUserByName(username);
	}
}
